home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / discs / prog_disc / volume_2 / issue_06 / scott / text / tree_t < prev    next >
Encoding:
Text File  |  1989-02-11  |  2.3 KB  |  62 lines

  1.                              TREE Release 1
  2.  
  3.                               David Scott
  4.  
  5.  
  6. Introduction
  7.  
  8. TREE is a utility program which displays or prints Archimedes ADFS  file 
  9. structures.  It  also  provides facilities to search for  files  with  a 
  10. specified wildcard file name.
  11.  
  12. The program is written in C and is available as a machine code file  for 
  13. running on the Archimedes.
  14.  
  15. Commands
  16.  
  17. The  operation of the program is controlled by the parameters  given  in 
  18. the command line when calling the program.
  19.  
  20. The syntax for the command line is:
  21.  
  22.       *TREE [<directoryname>] [<wildcard file name>] [options]
  23.  
  24. If  no parameters or a faulty parameter is given then the help  text  is 
  25. displayed.
  26.  
  27. The  default drive  and directory name is ':4.$'.  If another  drive  is 
  28. required then it must be specified explicitly.  If the drive is  correct 
  29. but a different directory is required then this may be specified without 
  30. specifying the drive.
  31.  
  32. The  wild card filename is normally used only when a particular file  or 
  33. group  of files is required to be listed.  The default file  name is '*' 
  34. which ensures that all files are listed.
  35.  
  36. Options are specified by a hyphen followed by a single letter:
  37.  
  38. -c    List current directory only.  If this option is not specified then 
  39.       subdirectories are also listed.
  40.  
  41. -d    List  directory names only.  If this option is not specified  then 
  42.       file names are also listed.
  43.  
  44. -l    Listing format option.  If specified then files are listed one per 
  45.       line. Each file name is indented to show its level relative to the 
  46.       root directory.  If the option is omitted,  then up to five  files 
  47.       are listed on each line. In both cases the directory name is given 
  48.       in full at the beginning of the list.
  49.  
  50. -p    Print all screen information on the current printer.  This  option 
  51.       assumes  that the printer has been correctly initialised and  that 
  52.       it is on line.
  53.  
  54. -s    Search for and display file names.  This  option  is  particularly 
  55.       suitable for displaying files when a wild card file name has  been 
  56.       specified.  The file name is given in full including the drive and 
  57.       full  path  name.  File names are indented to separate  them  from 
  58.       directory names.   If this option is not specified then drive  and 
  59.       full path names are given for directories but file names are given 
  60.       alone.
  61.  
  62.